package com.dhu.demo.mapper;

import com.dhu.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll();

    int deleteByPrimaryKey(String account);

    int insert(User record);

    int insertSelective(User record);

    String judgeByAccount(String account)throws NullPointerException;

    String selectByAccount(String account,String password);

    int updateByPrimaryKeySelective(User record);

    int updatePasswordByAccount(User record);

    int updateLevelByAccount(User record);

    String getPasswordByAccount(String account);
}